package com.myaxuan.service.permissions;

import com.myaxuan.entity.permissions.Role;

import java.util.List;

/**
 * Created by pc255 on 2018/1/31.
 */
public interface RoleService {
	/**
	 * 删除
	 * @param roleId
	 * @return
	 */
	int deleteByPrimaryKey(String roleId);

	/**
	 * 新增
	 * @param record
	 * @return
	 */
	int insertSelective(Role record);

	/**
	 * 修改
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(Role record);

	/**
	 * 分页查询
	 * @return
	 */
	List<Role> findAll(Integer page ,Integer limit);

	/**
	 * 查询
	 * @param id
	 * @return
	 */
	Role selectByPrimaryKey(String id);
}
